<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Rest Reminder</title>
  <style>
    body {
      margin: 0;
      padding: 0;
      width: 100vw;
      height: 100vh;
      display: flex;
      justify-content: center;
      align-items: center;
      background-color: rgba(0, 0, 0, 0.7);
      color: white;
      font-family: Arial, sans-serif;
      animation: fadeInOut 15s ease-in-out forwards;
    }

    .container {
      position: relative;
      text-align: center;
      padding: 40px;
      border-radius: 10px;
      background-color: #4CAF50;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    }

    .close-btn {
      position: absolute;
      top: 10px;
      right: 10px;
      background: none;
      border: none;
      color: white;
      font-size: 20px;
      cursor: pointer;
    }

    @keyframes fadeInOut {
      0%, 100% {
        opacity: 0;
      }
      5%, 95% {
        opacity: 1;
      }
    }
  </style>
</head>
<body>
  <div class="container">
    <button class="close-btn" onclick="window.close()">×</button>
    <h1 id="title"></h1>
    <p id="message"></p>
  </div>
  <script>
    window.addEventListener('DOMContentLoaded', () => {
      const { ipcRenderer } = require('electron');
      ipcRenderer.on('set-content', (event, content) => {
        document.getElementById('title').textContent = content.title;
        document.getElementById('message').textContent = content.message;
      });
    });
  </script>
</body>
</html>



